CSharpTest.Net
Assert(Boolean,String,Object[]) Method
See Also  Send Feedback Download Help File
CSharpTest.Net.BPlusTree Assembly > CSharpTest.Net Namespace > AssertionFailedException Class > Assert Method : Assert(Boolean,String,Object[]) Method

condition
format
args

Glossary Item Box

if(condition == false) throws A runtime assertion failed: {0}

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Sub Assert( _
   ByVal condition As Boolean, _
   ByVal format As String, _
   ByVal ParamArray args() As Object _
) 
C# 
public static void Assert( 
   bool condition,
   string format,
   params object[] args
)

Parameters

condition
format
args

Exceptions

ExceptionDescription
AssertionFailedExceptionException class: AssertionFailedException A runtime assertion failed while performing the operation.

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys